15 #ifndef __SCANNER_STATUS_STRUCT_H__ 16 #define __SCANNER_STATUS_STRUCT_H__ 168 BYTE buffReserved[119];
179 static void StatusToStringA(
ScannerStatusStruct* pStatus,
char* szBufferOut, DWORD dwBuffCharSize)
182 ZeroMemory(szApp,
sizeof(szApp));
184 if (pStatus == NULL || szBufferOut == NULL)
190 strcpy_s(szBufferOut, dwBuffCharSize,
"Scanner status: ");
198 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
202 sprintf_s(szApp,
MAXCHARBUFFER,
"Paper jam for form held back; ");
203 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
208 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
213 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
218 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
223 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
228 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
233 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
238 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
242 sprintf_s(szApp,
MAXCHARBUFFER,
"Ticket present on scanner enter; ");
243 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
247 sprintf_s(szApp,
MAXCHARBUFFER,
"Large ticket present on scanner enter; ");
248 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
252 sprintf_s(szApp,
MAXCHARBUFFER,
"Ticket present on scanner exit; ");
253 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
258 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
263 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
270 sprintf_s(szApp,
MAXCHARBUFFER,
"Sensor input center left: PAPER PRESENT; ");
271 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
275 sprintf_s(szApp,
MAXCHARBUFFER,
"Sensor input center right: PAPER PRESENT; ");
276 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
280 sprintf_s(szApp,
MAXCHARBUFFER,
"Sensor input left left: PAPER PRESENT; ");
281 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
285 sprintf_s(szApp,
MAXCHARBUFFER,
"Sensor input right right: PAPER PRESENT; ");
286 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
290 sprintf_s(szApp,
MAXCHARBUFFER,
"Sensor internal input left: PAPER PRESENT; ");
291 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
295 sprintf_s(szApp,
MAXCHARBUFFER,
"Sensor internal input right: PAPER PRESENT; ");
296 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
300 sprintf_s(szApp,
MAXCHARBUFFER,
"Sensor output center left: PAPER PRESENT; ");
301 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
305 sprintf_s(szApp,
MAXCHARBUFFER,
"Sensor output center right: PAPER PRESENT; ");
306 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
310 sprintf_s(szApp,
MAXCHARBUFFER,
"Sensor output left left: PAPER PRESENT; ");
311 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
315 sprintf_s(szApp,
MAXCHARBUFFER,
"Sensor output right right: PAPER PRESENT; ");
316 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
320 sprintf_s(szApp,
MAXCHARBUFFER,
"Sensor void print head: PAPER PRESENT; ");
321 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
326 if (szApp[0] ==
'\0')
329 strncat_s(szBufferOut, dwBuffCharSize, szApp, (dwBuffCharSize - strnlen(szBufferOut, dwBuffCharSize) + 1));
BOOL bScanInProgress
Definition: dss_scannerStatusStruct.h:94
SensorStatus SensorInputRightRight
Definition: dss_scannerStatusStruct.h:29
BOOL bPaperJam
Definition: dss_scannerStatusStruct.h:114
SensorStatus SensorVoidPrintHead
Definition: dss_scannerStatusStruct.h:152
Definition: dss_scannerStatusStruct.h:23
SensorStatus SensorInternalInputLeft
Definition: dss_scannerStatusStruct.h:49
BOOL bJAMPaperHeldBack
Definition: dss_scannerStatusStruct.h:119
SensorStatus SensorOutputCenterRight
Definition: dss_scannerStatusStruct.h:64
BOOL bScanCanceled
Definition: dss_scannerStatusStruct.h:88
BOOL bLoadingPaper
Definition: dss_scannerStatusStruct.h:99
SensorStatus
Definition: dss_types.h:317
BOOL bMotorOn
Definition: dss_scannerStatusStruct.h:124
SensorStatus SensorOutputCenterLeft
Definition: dss_scannerStatusStruct.h:69
SensorStatus SensorInputCenterRight
Definition: dss_scannerStatusStruct.h:34
#define MAXCHARBUFFER
Lenght, in characters, of a standard string.
Definition: dss_types.h:50
BOOL bPrintHeadReady
Definition: dss_scannerStatusStruct.h:157
SensorStatus SensorInputCenterLeft
Definition: dss_scannerStatusStruct.h:39
BOOL bTicketOnEnterA4
Definition: dss_scannerStatusStruct.h:136
BOOL bScannerCoverOpen
Definition: dss_scannerStatusStruct.h:109
BOOL bTicketOnEnterCenter
Definition: dss_scannerStatusStruct.h:130
SensorStatus SensorInputLeftLeft
Definition: dss_scannerStatusStruct.h:44
BOOL bTicketOnExit
Definition: dss_scannerStatusStruct.h:146
BOOL bExternalCoverOpen
Definition: dss_scannerStatusStruct.h:163
SensorStatus SensorOutputLeftLeft
Definition: dss_scannerStatusStruct.h:74
SensorStatus SensorInternalInputRight
Definition: dss_scannerStatusStruct.h:54
SensorStatus SensorOutputRightRight
Definition: dss_scannerStatusStruct.h:59
BOOL bTicketLoaded
Definition: dss_scannerStatusStruct.h:141
BOOL bDoubleSheet
Definition: dss_scannerStatusStruct.h:83
The paper is upon the sensor.
Definition: dss_types.h:323